<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>后台资源管理</title>
    <link rel="stylesheet" href="/xcxmb/public/static/style/houtai.css">
    <script src="/xcxmb/public/static/style/jquery-3.2.1.umin.js"></script>
    <script type="text/javascript">
        //删除整行
        function delet(id,obj){
            var rowIndex = obj.parentElement.rowIndex;
            document.getElementById(id).deleteRow(rowIndex);
        }
        //修改
        $(document).ready(function () {
            $(".spc").click(function () {
                window.location.href="__URL__/splice"
            })
        })

    </script>
</head>

    {include  file="common/index"}

    <div class="search">
        <div id="sec1">
             <span>ID</span> <input type="number">
             <span>关键词</span> <input type="text">
        </div>
        <div id="sec2"><input  id="sousuo" type="submit" value="搜索" style="background-color: lightsteelblue"></div>
        <div id="push" ><a href="push.html" style="background-color: gold">添加数据</a></div>
    </div>


    <div class="table">
        <div class="title">
            <ul>
                <li><h3>ID</h3></li>
                <li><h3>标题</h3></li>
                <li><h3>轮播图</h3></li>
                <li><h3>添加时间</h3></li>
                <li><h3>内容</h3></li>
            </ul>
        </div>
        <table border="1px" id="tbl">
            <tr>
                <td>1</td>
                <td>2</td>
                <td>3</td>
                <td>4</td>
                <td>
                    <input type="button" name="button" value="delete" onclick="delet('tbl',this);" />
                    <input type="button" name="spcbtn" value="splice" class="spc" >
                </td>
            </tr>
            <tr>
                <td>1</td>
                <td>2</td>
                <td>3</td>
                <td>4</td>
                <td>
                    <input type="button" name="button" value="delete" onclick="delet('tbl',this);" />
                    <input type="button" name="spcbtn" value="splice" class="spc">
                </td>
            </tr>
            <tr>
                <td>1</td>
                <td>2</td>
                <td>3</td>
                <td>4</td>
                <td>
                    <input type="button" name="spcbtn" value="delete" onclick="delet('tbl',this);" />
                    <input type="button" name="spcbtn" value="splice" class="spc" >
                </td>
            </tr>
        </table>

    </div>

</body>
</html>